<template>
	<view class="page">
			<view>
				<u--input v-model="remark" placeholder="可结算1000元"></u--input>
			</view>
		<view class="marginTop30">
			<u-button type="error" text="确认结算" @click="submit"></u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				remark: ''
			}
		},
		onLoad() {
		},
		onReady() {
		},
		methods: {

			submit() {
				let that = this
				that.$reqJsonPost('CoreCmsStoreStaffDrawMoney', {remark:that.remark}).then(res => {
					console.log(res);
					if (res.code === 0) {
						that.$refs.uToast.show({
							loading: true,
							message: res.msg,
							complete() {
								uni.navigateBack()
							}
						})
					} else {
						uni.showToast({
							title: res.msg,
							duration: 2000
						});
					}
				})
			}
		},
	}
</script>

<style lang="scss" scoped>
	.page {
		padding: 30rpx;
		background-color: #fff;
	}
	.marginTop30{
		margin-top: 30rpx;
		
	}
</style>
